package com.itheima.guozi2;

public class Demo01 {

    public static void main(String[] args) {
        Desk desk = new Desk();
        Cooker cooker = new Cooker(desk);
        Foodie foodie = new Foodie(desk);
        Thread t1 = new Thread(cooker);
        t1.setName("摊主");
        Thread t2 = new Thread(foodie);
        t2.setName("果子迷1");
        t1.start();
        t2.start();

    }
}
